<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 双飞翼布局 两边固定 中间自适应 -->

    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        .container {
            width: 60%;
            height: 150px;
            /* 必须写高度 */
            display: flex;
            /* 父容器设置flex布局 */
            background-color: pink;
            margin: 0 auto;
        }

        .main {
            flex: 1;
            /* 两侧固定，中间自适应 */
            background-color: deeppink;
        }

        .left {
            width: 100px;
            background: aqua;
        }

        .right {
            width: 150px;
            background: gray;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="left"></div>
        <div class="main"></div>
        <div class="right"></div>
    </div>

</body>

</html>